#coding=utf-8

from stockdb.misc import *

for td in szzs.tds:
    if td.price.trade_rate:continue
    
    dt = td.date.isoformat()
    tr = calculate_szzs_traderate(dt)
    
    td.price.trade_rate = tr
    sess.commit()
    
    print dt, '%.2f'%tr
